<?php
	include_once("db/RepositoryExt.inc");
	include_once("db/AuditLogs.inc");
	
	$listEuid = $_REQUEST["listEuid"];
	$splitcontents = explode(',', $listEuid);
	
	foreach ($splitcontents as $euid) {
		AuditLogs::insertLog(User::getUser($_SESSION["uid"])->username, 'admin - unlock document', $euid);
		RepositoryExt::unlockDoc($euid);
	}
	
	header("Location: .?action=viewUnlock");
?>